/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.flowform.form.service;

import java.util.List;

import com.jeeplus.modules.flowform.form.entity.RepairMake;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.flowform.form.entity.RepairTaskDistribution;
import com.jeeplus.modules.flowform.form.mapper.RepairTaskDistributionMapper;

/**
 * 进行检修任务分配Service
 * @author 刘明星
 * @version 2020-11-04
 */
@Service
@Transactional(readOnly = true)
public class RepairTaskDistributionService extends CrudService<RepairTaskDistributionMapper, RepairTaskDistribution> {

	public RepairTaskDistribution get(String id) {
		return super.get(id);
	}
	
	public List<RepairTaskDistribution> findList(RepairTaskDistribution repairTaskDistribution) {
		return super.findList(repairTaskDistribution);
	}
	
	public Page<RepairTaskDistribution> findPage(Page<RepairTaskDistribution> page, RepairTaskDistribution repairTaskDistribution) {
		return super.findPage(page, repairTaskDistribution);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateState(RepairTaskDistribution repairTaskDistribution){
		mapper.updateState(repairTaskDistribution);
	}
	@Transactional(readOnly = false)
	public void save(RepairTaskDistribution repairTaskDistribution) {
		super.save(repairTaskDistribution);
	}
	
	@Transactional(readOnly = false)
	public void delete(RepairTaskDistribution repairTaskDistribution) {
		super.delete(repairTaskDistribution);
	}
	
}